package lec10.am;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JFrame;

public class GUIGraph extends JFrame {
	@Override
	public void paint(Graphics g) {
		g.setColor(Color.gray);
		g.fillRect(0, 0, this.getWidth(), this.getHeight());
		g.setColor(Color.red);
		g.drawArc(100, 100, 250, 250, 0, 360);
		g.drawArc(150, 150, 60, 60, 0, 360);
		g.drawArc(240, 150, 60, 60, 0, 360);
		g.drawArc(195, 250, 80, 80, 0, -180);
	}

	public GUIGraph() {
		super("My App");
		setSize(400, 400);
		setVisible(true);
	}

	public static void main(String[] args) {
		new GUIGraph();
	}
}
